package com.itheima.capsulation;

/**
 * @author jiangxun
 * @date 11-15-2024
 */
public class StudentTest {
    /**
     * 目标：搞清楚封装的设计思想：合理隐藏合理暴露。
     */
    public static void main(String[] args) {
        Student student01 = new Student();
        student01.name = "小明";
        student01.setAge(18);
        System.out.println(student01.getAge());
    }
}
